package com.company.eos.controller.form.quit;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotBlank;

/**
 * @author: Song, Wei
 * @date: 2022-03-28
 */
@Data
@Schema(description = "添加离职记录表单")
public class InsertQuitForm {

    @NotBlank(message = "reason不能为空")
    @Length(max = 200, message = "reason不能超过200字符")
    private String applyReason;

    @NotBlank(message = "离职时间不能为空")
    @Schema(description = "离职时间时间")
    private String quitTime;

}
